package com.frank.subject.infra.basic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.frank.subject.infra.basic.entity.SubjectMultiple;
import com.frank.subject.infra.basic.mapper.SubjectMultipleMapper;
import com.frank.subject.infra.basic.service.SubjectMultipleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * 多选题信息表(SubjectMultiple)表服务实现类
 *
 * @author makejava
 * @since 2024-01-23 17:23:23
 */
@Service("subjectMultipleService")
public class SubjectMultipleServiceImpl extends ServiceImpl<SubjectMultipleMapper, SubjectMultiple> implements SubjectMultipleService {

    private final SubjectMultipleMapper subjectMultipleMapper;

    public SubjectMultipleServiceImpl(SubjectMultipleMapper subjectMultipleMapper) {
        this.subjectMultipleMapper = subjectMultipleMapper;
    }

    @Override
    public List<SubjectMultiple> queryBySubjectId(Long subjectId) {
        return this.subjectMultipleMapper.queryBySubjectId(subjectId);
    }
}
